home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / NetHack 3.1.3 / source / include / ntconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-01  |  1.2 KB  |  62 lines  |  [TEXT/R*ch]

  1. /*    SCCS Id: @(#)ntconf.h    3.1    93/04/08    */
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifndef NTCONF_H
  6. #define NTCONF_H
  7.  
  8. #define MICRO        /* always define this! */
  9.  
  10. #define SHELL
  11.  
  12. #define RANDOM        /* have Berkeley random(3) */
  13.  
  14. #define TEXTCOLOR    /* Color text */
  15.  
  16. #define PATHLEN        64    /* maximum pathlength */
  17. #define FILENAME    80    /* maximum filename length (conservative) */
  18. #ifndef MICRO_H
  19. #include "micro.h"      /* contains necessary externs for [os_name].c */
  20. #endif
  21.  
  22.  
  23. /*
  24.  *  The remaining code shouldn't need modification.
  25.  */
  26.  
  27. #define NO_TERMS       /* April 8/93 mja */
  28. #define ASCIIGRAPH
  29.  
  30. #ifndef SYSTEM_H
  31. #include "system.h"
  32. #endif
  33. #define index    strchr
  34. #define rindex    strrchr
  35.  
  36. #include <time.h>
  37.  
  38. #ifdef RANDOM
  39. /* Use the high quality random number routines. */
  40. #define Rand()    random()
  41. #else
  42. #define Rand()    rand()
  43. #endif
  44.  
  45. #define FCMASK    0660    /* file creation mask */
  46.  
  47. #include <fcntl.h>
  48. #include <io.h>
  49. #include <direct.h>
  50. #include <conio.h>
  51. #undef kbhit            /* Use our special NT kbhit */
  52.  
  53. #define exit    msexit        /* do chdir first */
  54.  
  55. #ifndef REDO
  56. #undef    Getchar
  57. #define Getchar nhgetch
  58. #endif
  59.  
  60.  
  61. #endif /* NTCONF_H */
  62.